<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
    <div class="subnav">
        <a href="">首页</a> &gt; <a href="">客户管理</a> &gt; <a href="">等级管理</a>
    </div>
    <div class="main-inner">
    	<div class="tablefilter" style="height: 40px;">
            <div class="tablebutton">
                <a href="{U('user/level', array('operation'=>'addview'))}" class=""><i class="fa fa-plus"></i>新增</a>
            </div>
        </div>
        <div class="x-body">
            <table class="layui-table">
                <thead>
                    <tr>
                        <th width="15%">等级</th>
                        <th width="15%">头衔</th>
                        <th width="15%">升级所需积分</th>
                        <th width="15%">升级奖励（元）</th>
                        <th width="15%">跳级奖励（元）</th>
                        <th width="15%">状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="datalist">
                	{loop $levelList as $key => $value}
                		<tr>
                			<td>{$value['level']}</td>
                			<td>{$value['title']}</td>
                			<td>{$value['group_point']}</td>
                			<td>{$value['reward']}</td>
                			<td>{$value['overstep']}</td>
                			<td>
                				{if $value['status']}
                					开启
                				{else}
                					关闭
                				{/if}
                			</td>
                			<td>
                				<a href="{U('user/level', array('operation' => 'addview', 'id' => $value['id']))}">修改</a> | 
                				<a href="{U('user/level', array('operation' => 'del', 'id' => $value['id']))}">删除</a>
                			</td>
            			</tr>
                	{/loop}
                </tbody>
            </table>
        </div>
    </div>
        
        
        
{template index/footer}
